﻿using Md.Api.Model.Manage.SysDept.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.SysDept;
/// <summary>
/// 通过部门编号获取系统部门服务
/// </summary>
public class GetSysDeptByDeptIdService : ApiBase<RequestGetSysDeptByDeptIdModel>
{
    /// <summary>
    /// 系统部门仓储
    /// </summary>
    public SysDeptRep sysDeptRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = sysDeptRep.GetSysDeptByDeptId(Parameter.DeptId);

        Result.Data = res;
    }
}

